import { initGlobalState } from 'qiankun'
import store from '../store'

const actions = initGlobalState()

actions.onGlobalStateChange((state, prev) => {
  console.log('主应用变更前：', prev)
  console.log('主应用变更后：', state)
  store.commit('getGlobalData', state)
})

export default actions
